<tagLib name="html" />
<include file="Public:header" />
	<script src="/Public/source/jquery.js"></script>
	<script>
		$(function(){
			$("#quanxuan").click(function(){
				$("[type='checkbox']").attr("checked",'true');
				$(".quxiao").removeAttr("checked");
			});
			$("#quxiao").click(function(){
				$("[type='checkbox']").removeAttr("checked");
				$(".quxiao").attr("checked",'true');
			});
		});
	</script>
		<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;审核列表</div>
	</div>
	
<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
	
		<tr class="header" align="center">
			<td width="5%" class="center">ID</td>
			<td width="5%" class="center">全选</td>
			<td width="37%" class="center">标题</td>
			<td  width="13%" class="center">时间</td>
			<td  width="10%" class="center">编辑</td>
			<td  width="10%" class="center">删除</td>
			<td  width="10%" class="center">显示</td>
		</tr>
	</table>
	<form action="" method="post" id="myform">
		<if condition="$list neq NULL">
			<volist name="list" id="vo">	
				<li style="list-style:none;">
					<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
						<tr align="center" class="smalltxt">
							<td width="5%" class="altbg1 center">{YICMS:$vo.id}</td>
							<td width="5%" class="altbg2 center"><input type="checkbox" name="xuan[]" value="{YICMS:$vo.id}"/></td>
							<td width="37%" class="altbg1 center"><if condition="empty($vo['title'])"> {YICMS:$vo.nav.name}#{YICMS:$vo.id}<else />{YICMS:$vo.title|msubstr=###,0,27}</if></td>
							<td width="13%" class="altbg1 center">{YICMS:$vo.time|switchtime=###}</td>
							<td width="10%" class="altbg1 center"><a href="{YICMS::U('Newslist/edit?id='.$vo['id'])}" style="background:url(../Public/Images/admin/edit.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="10%" class="altbg2 center"><a href="{YICMS::U('Newslist/del?id='.$vo['id'])}" onclick="return confirm('提示：您确定要删除该内容吗？')" style="background:url(../Public/Images/admin/remove.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="10%" class="altbg1 center">
								<if condition="$vo.state eq 0">
									<a href="{YICMS::U('Newslist/stop?id='.$vo['id'].'&state=1')}" style="color:red">通过</a>
								<else />
									<a href="{YICMS::U('Newslist/stop?id='.$vo['id'].'&state=0')}" style="color:red">不通过</a>
								</if>
							</td>
						</tr>
					</table>
				</li>
			
			</volist>
		<else />
			<li style="list-style:none;">
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td class="altbg1" style="text-align:center;font-weight:bold;color:#E01558;padding:10px 0px;">暂时没有未审核的内容!</td>
					</tr>
				</table>
			</li>
		</if>	
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="10%" class="center">
				<label><input type="checkbox" id="quanxuan" />全选</label>&nbsp;/&nbsp;
				<label><input type="checkbox" id="quxiao" class="quxiao"/>全不选</label>
			</td>

			<td width="25%" class="center">
				<input type="button" class="button" value="通过选中" onclick="myform.action='{YICMS::U('Newslist/showAll')}';$('#myform').submit();" />
			</td>
			
			<td width="25%" class="center">
				<input type="button" class="button" value="删除选中" onclick="myform.action='{YICMS::U('Newslist/delAll')}';$('#myform').submit();" />
			</td>


		</tr>
	</table>
</form>
	<div class="page">{YICMS:$page}</div>
<br/>
<include file="Public:footer" />